package cn.stylefeng.guns.modular.system.mapper;

import cn.stylefeng.guns.modular.system.entity.BothSaleCommit;
import cn.stylefeng.guns.modular.system.model.params.BothSaleCommitParam;
import cn.stylefeng.guns.modular.system.model.params.BothSaleParam;
import cn.stylefeng.guns.modular.system.model.result.BothSaleCommitResult;
import cn.stylefeng.guns.modular.system.model.result.resultVO.BothSaleVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 两地销售申请表 Mapper 接口
 * </p>
 *
 * @author 小飞
 * @since 2019-07-11
 */
public interface BothSaleCommitMapper extends BaseMapper<BothSaleCommit> {

    /**
     * 获取列表
     *
     * @author 小飞
     * @Date 2019-07-11
     */
    List<BothSaleCommitResult> customList(@Param("paramCondition") BothSaleCommitParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 小飞
     * @Date 2019-07-11
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BothSaleCommitParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 小飞
     * @Date 2019-07-11
     */
    Page<BothSaleVO> customPageList(@Param("page") Page page, @Param("paramCondition") BothSaleCommitParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author 小飞
     * @Date 2019-07-11
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BothSaleCommitParam paramCondition);


    BothSaleCommit getByProcessInstanceId(String processInstanceId);

    IPage<BothSaleCommitParam> getBySaleId(@Param("page")Page page,@Param("id") Long id);

    IPage<BothSaleParam> getBothBySaleId(@Param("page")Page page,@Param("id") Long id);
}
